import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

  const routes = [
  {
    path: '/',
    name: 'index',
    redirect: '/Home',
    component: () => import('@/views/index'),
    children: [
      {
        path: 'Home',
        name: 'Home',
        component: () => import('@/views/Home')
      }
    ]
  },
]

const router = new VueRouter({
  routes
})

export default router
